package main

import "fmt"

// 切片定义
// var 切片名 []数据类型
func main() {
	//var slice = []int{1,2,3,4,5}
	//slice := []int{1,2,3,4,5}

	slice := make([]int, 3, 5)
	for i, v := range slice {
		fmt.Print("索引:", i)
		fmt.Print(" 值:", v)
		fmt.Println(" ")
	}

}
